<template>
    <div class="handNav">
            <div class="gobackIcon" @click="back">
                <img src="../../../../../assets/images/goback.png" alt="">
            </div>
            <div class="pageTitle">
                <slot name='topNav-content'></slot>
                
            </div>
            <div class="gowuche" v-if='isShow' @click="gotoShoppingCar">
                <img src="../../../../../assets/images/gowuche.png" alt="">
            </div>
            <div v-else class="chooseAll">
                选择全部
            </div>
        </div>
</template>

<script>
export default {
    name:'ListDetailsHandle',
    data(){
        return{
            
        }
    },
    methods:{
        back(){
            this.$router.go(-1);
        },
        gotoShoppingCar(){
            this.$router.push('/shoppingCar')
        }
    },
    props:{
        isShow:{
            type:Boolean,
            default:true
        }
    }
}
</script >

<style lang='less' scoped>
.handNav{
    width: 100%;
    height: 44px;
    background-color: white;
    position: relative;
    .gobackIcon{
        width: 19px;
        height: 19px;
        position: absolute;
        top: 12.5px;
        left: 11px;
        float: left;
        img{
            width: 100%;
            height: 100%;
        }
    }
    .pageTitle{
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top:0;
        margin: auto;
        width: 155px;
        height: 32px;
        line-height: 32px;
        text-align: center;
        font-family: Arial;
        p{
            font-size: 16px;
            color: rgba(16, 16, 16, 1);
        }
    }
    .gowuche{
        width: 19px;
        height: 19px;
        position: absolute;
        top: 12.5px;
        right: 21px;
        float: right;
        img{
            width: 100%;
            height: 100%;
        }
    }
    .chooseAll{
        width: 57px;
        height: 23px;
        line-height: 23px;
        color: rgba(16, 16, 16, 1);
        font-size: 14px;
        text-align: center;
        font-family: Arial;
        position: absolute;
        top: 12.5px;
        right: 21px;
    }
}
</style>
